<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>${systemConfig['WEBNAME']!} - 后台管理界面</title>
	<meta content="${systemConfig['KEYWORDS']!}" name="keywords">
	<meta content="${systemConfig['DESCRIPTION']!}" name="description">
    
    <link rel="shortcut icon" href="${ctx}/favicon.png" />
    
	<link href="${ctx}/html/dwz/themes/default/style.css" rel="stylesheet" type="text/css" media="screen" />
	<link href="${ctx}/html/dwz/themes/css/core.css" rel="stylesheet" type="text/css" media="screen" />
	<link href="${ctx}/html/dwz/themes/css/print.css" rel="stylesheet" type="text/css" media="print" />
	<link href="${ctx}/html/dwz/uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen" />
	
	<!-- ztree -->
	<link href="${ctx}/html/ztree/zTreeStyle.css" rel="stylesheet" type="text/css" media="screen"></link>
	
	<script src="${ctx}/html/dwz/js/jquery-1.7.2.min.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/jquery.cookie.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/jquery.validate-1.9.0.min.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/jquery.bgiframe.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/xheditor/xheditor-1.2.1.min.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/xheditor/xheditor_lang/zh-cn.js" type="text/javascript" charset="utf-8" ></script>
	<script src="${ctx}/html/dwz/uploadify/scripts/jquery.uploadify.js" type="text/javascript"></script>
	
	<script src="${ctx}/html/dwz/js/dwz.core.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.util.date.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.validate.method.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.barDrag.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.drag.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.tree.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.accordion.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.ui.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.theme.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.switchEnv.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.alertMsg.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.contextmenu.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.navTab.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.tab.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.resize.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.dialog.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.dialogDrag.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.sortDrag.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.cssTable.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.stable.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.taskBar.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.ajax.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.pagination.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.database.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.datepicker.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.effects.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.panel.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.checkbox.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.history.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.combox.js" type="text/javascript"></script>
	<script src="${ctx}/html/dwz/js/dwz.print.js" type="text/javascript"></script>
	
	<script src="${ctx}/html/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>
	
	<!-- ztree -->
	<script src="${ctx}/html/ztree/jquery.ztree.core-3.5.min.js" type="text/javascript"></script>
	<script src="${ctx}/html/ztree/jquery.ztree.excheck-3.5.min.js" type="text/javascript"></script>
	
	<script type="text/javascript">
		$(function() {
			DWZ.init("${ctx}/html/dwz/dwz.frag.xml", {
				loginUrl : "${ctx}/admin/login/loginTimeOut",
				loginTitle : "登录", // 弹出登录对话框
				//		loginUrl:"login.html",	// 跳到登录页面
				statusCode : {
					ok : 200,
					error : 300,
					timeout : 301
				}, //【可选】
				pageInfo : {
					pageNum : "pageNum",
					numPerPage : "numPerPage",
					orderField : "orderField",
					orderDirection : "orderDirection"
				}, //【可选】
				debug : false, // 调试模式 【true|false】
				callback : function() {
					initEnv();
					$("#themeList").theme({themeBase : "${ctx}/html/dwz/themes"}); // themeBase 相对于index页面的主题base路径
				}
			});
		});
		
		function testConfirmMsg(url, data){
			alertMsg.confirm("确认刷新？", {
				okCall: function(){
					$.post(url, data, DWZ.ajaxDone, "json");
				}
			});
		}
	</script>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<span style="font-size: 17px;font-weight: bold;color: #FFF;"> <br/> &nbsp;&nbsp; ${webName!}</span>
				<ul class="nav">
					<li><span style="color: #FFF;">&nbsp;您好！ <span style="color: red;font-size: 12px;">${session["loginUser"].name!}</span> 欢迎使用本系统</span></li>
					<li><a href="${ctx}/admin/user/toModifyPage/${session['loginUser'].id!}-modifyInfo" rel="modifyInfoDialog" target="dialog" mask="false" width="520" height="510">个人资料</a></li>
					<li><a href="${ctx}/admin/login/logout">退出</a></li>
				</ul>
				<ul class="themeList" id="themeList">
					<li theme="default"><div class="selected">蓝色</div>
					</li>
					<li theme="green"><div>绿色</div>
					</li>
					<li theme="purple"><div>紫色</div>
					</li>
					<li theme="silver"><div>银色</div>
					</li>
					<li theme="azure"><div>天蓝</div>
					</li>
				</ul>
			</div>

			<!-- navMenu -->

		</div>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse">
						<div></div>
					</div>
				</div>
			</div>
			<div id="sidebar">
			
				<div class="toggleCollapse">
					<h2>系统操作菜单</h2>
					<div>收缩</div>
				</div>
				
				<div class="accordion" fillSpace="sidebar">
					<#list parent as p>
					<#-- 权限判断一级菜单 begin -->
					<#if menu?index_of("-"+p.id?string+"-") != -1>
					<div class="accordionHeader">
						<h2 <#if p.enable == '1'>style="color:red;"</#if>>
							<span>Folder</span>${p.get("name")}
						</h2>
					</div>
					<div class="accordionContent">
						<ul class="tree treeFolder">
							<#list children.get(2?int) as child>
							<#if child.get("pid") == p.get("id")>
							<#-- 权限判断二级菜单 begin -->
							<#if menu?index_of("-"+child.id?string+"-") != -1>
							<li><a <#if child.get('url') == "#">href="javascript:void(0);" <#else>href="${ctx!}/${child.get('url')}" target="${child.get('target')}" rel="${child.get('rel')}" </#if> 
								   <#if child.enable == '1'> style="color:red;" </#if>
								   <#if child.get('target') == "dialog"> width="child.get('width')" height="child.get('height')" </#if>
								   >${child.get("name")}
								</a>
								<#assign i=0/>
								<#list children.get(3?int) as c>
									<#if c.get("pid") == child.get("id")>
									<#-- 权限判断三级菜单 begin -->
									<#if menu?index_of("-"+c.id?string+"-") != -1>
									<#assign i=i+1>
									<#if i == 1>
									<ul>
									</#if>
										<li><a href="${ctx!}/${c.get('url')}" target="${c.get('target')}" rel="${c.get('rel')}" 
											   <#if c.enable == '1'> style="color:red;" </#if>
											   <#if c.get('target') == "dialog"> width="c.get('width')" height="c.get('height')" </#if>
											   >${c.get("name")}
											</a>
										</li>
									</#if>
									</#if>
									<#if !c_has_next && i != 0>
									</ul>
									</#if>
									<#-- 权限判断三级菜单 end -->
								</#list>
							</li>
							<#-- 权限判断二级菜单 end -->
							</#if>
							</#if>
							</#list>
						</ul>
					</div>
					</#if>
					<#-- 权限判断一级菜单 end -->
					</#list>
				
				</div>
			</div>
		</div>
	</div>
	<div id="container">
		<div id="navTab" class="tabsPage">
			<div class="tabsPageHeader">
				<div class="tabsPageHeaderContent">
					<#-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
					<ul class="navTab-tab">
						<li tabid="main" class="main">
							<a href="javascript:;"><span><span class="home_icon">我的主页</span></span></a>
						</li>
					</ul>
				</div>
				<div class="tabsLeft">left</div>
				<#-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
				<div class="tabsRight">right</div>
				<#-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
				<div class="tabsMore">more</div>
			</div>
			<ul class="tabsMoreList">
				<li><a href="javascript:;">我的主页</a>
				</li>
			</ul>
			<div class="navTab-panel tabsPageContent layoutBox" layoutH="90">
				<#include "main.html">
			</div>
		</div>
	</div>
	
	<div id="footer">
		${systemConfig['WEBCOPYRIGHT']!}<a href="http://www.miitbeian.gov.cn/" target="_blank" style="color: #6c9683;">${systemConfig['ICP']!}</a>
	</div>
</body>
</html>
